package com.ljy.db_bean_builder.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.ljy.db_bean_builder.domain.TableColumn;

/** 
* @author James
* @date 2018年6月19日 
*/
public interface BeanBuilderMapper {
	@Select("select column_name,ordinal_position,data_type,column_comment from information_schema.columns " + 
			"where table_schema = #{tableSchema} " + 
			"and table_name = #{tableName}")
	List<TableColumn> getTableColumnListByTableSchemaAndTableName(@Param("tableSchema")String tableSchema,@Param("tableName")String tableName);
}
